#!/bin/bash

if [ $# -lt "2" ]
then
    echo "Need project path and emulator avd name as arguments"
    exit
fi
$1scripts/buildFirbi.sh $1
emulator -avd $2 &
adb wait-for-device $2
sleep 45
adb install -r $1bin/FIRBI-debug.apk
adb shell am start -a android.intent.action.MAIN -n firbi.base/firbi.base.Search